package test;

import shake.annotation.PageConfiguration;
import shake.navigation.AbstractPageConfiguration;
import shake.navigation.ActionNavigate;
import shake.navigation.Pages;

import com.google.inject.Inject;

@PageConfiguration
public class PageConfig extends AbstractPageConfiguration {

	@Inject
	public PageConfig(Pages pages) {
		super(pages);
		ActionNavigate navi = pages.get("/home.xhtml").fromAction(
				"#{login.invoke(aaa)}");
		navi.redirect("/home.xhtml");
		navi.outcome("r").render("/home.xhtml");
		navi.outcome("aaaa").redirect("/home2.xhtml");
	}

}
